﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlatformNetCore.Entity
{
    [Table("SysLoginSession")]
    public class SysLoginSession
    {
        [Key]
        [MaxLength(36)]
        public string ID { get; set; }

        public string UID { get; set; }

        [MaxLength(64)]
        public string SID { get; set; }

        public Nullable<int> LoginCount { get; set; }

        public Nullable<System.DateTime> FirstLoginTime { get; set; }
        public Nullable<System.DateTime> LastLoginTime { get; set; }
        public Nullable<System.DateTime> LoginDate { get; set; }

        [ForeignKey("UID")]
        public virtual SysUser SysUser { get; set; }
    }
}
